onReady

abstract fun onReady()

Called when the serial port has been successfully opened, configured, and is ready for communication.

This callback indicates that the system is now actively listening for incoming data on this port and that data can potentially be sent to the port (if two-way communication is supported and configured).

It's a good place to perform any initial setup that requires an active serial connection, such as sending an initialization command to a connected device.